package org.example;


import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author wh1107066
 * https://www.letianbiji.com/article/101844.html
 * https://www.letianbiji.com/article/101727.html
 */
public class Main {

    public static void main(String[] args) {
        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);
        BusinessService businessService = applicationContext.getBean(BusinessService.class);
        // 输出"你好"，或者"Hello"
        System.out.println(businessService.hello());

    }
}